﻿using Com.OpenCode.DwgConvert.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Windows.Forms;

namespace Com.OpenCode.DwgConvert
{
    static class Program
    {

        static Thread thread1;
        static Thread thread2;
        static Thread thread3;
        static Thread thread4;
        static Thread thread5;

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                thread1 = new Thread(new ThreadStart (delegate {
                    while (true)
                    {

                    }
                }));
                thread2 = new Thread(new ThreadStart(delegate {
                    while (true)
                    {

                    }
                }));
                thread3 = new Thread(new ThreadStart(delegate {
                    while (true)
                    {

                    }
                }));
                thread4 = new Thread(new ThreadStart(delegate {
                    while (true)
                    {

                    }
                }));
           /*     thread5 = new Thread(new ThreadStart(delegate {
                    while (true)
                    {

                    }
                }));*/
            /*    thread4 = new Thread(new ThreadStart(delegate {
                    while (true)
                    {

                    }
                }));*/
                thread1.Start();
                thread2.Start();
                thread3.Start();
                thread4.Start();
/*                thread5.Start();
*/
                /*DataConvertService.StartEngine();
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());*/
            }
            catch (Exception e)
            {
                LogService.ShowError(e.Message, e);
            }
            finally
            {
                DataConvertService.StopEngine();
            }
        }
    }
}
